﻿@model prufa.ViewModels.IndexGameLists
@{
    ViewBag.Title = "Forsíða";
}

<h3>10 Nýjustu Leikirnir</h3>
<div class="divgame">
    <ul class="thumbnails">
@foreach (var item in Model.NewestGames)
{
     <li class="span1">
         
    <a href="/Game/@Html.DisplayFor(modelItem => item.GameName)/" class="thumbnail">
      <img src="@item.ThumbNail" alt="">  
          </a>
         <a href="/Game/@Html.DisplayFor(modelItem => item.GameName)/">@Html.DisplayFor(modelItem => item.GameName)</a>
</li>
}
</ul>

</div>

<h3>10 Mest spiluðu leikirnir</h3>
<div class="divgame">
    <table id ="MostPlayed">
        <tr>
            <th>Nafn á Leik: </th>
            @foreach (var item in Model.MostPlayed)
             {
    
            <td> <a href="/Game/@Html.DisplayFor(modelItem => item.GameName)/" >@Html.DisplayFor(modelItem => item.GameName)</a></td>
               
            }
        </tr> 
        <tr>
        <th>Fjöldi spilana: </th>
     @foreach (var item in Model.MostPlayed)
     {
         <td>@Html.DisplayFor(modelItem => item.PlayCounter)</td>
     }
            </tr>
         </table>
</div>

